package com.guoxue.dao.impl;


import org.springframework.stereotype.Repository;

import com.guoxue.dao.IBankAuthDao;
import com.guoxue.domain.BankAuthVo;
@Repository
public class BankAuthDaoImpl extends BaseDaoImpl<BankAuthVo> implements IBankAuthDao{

	@Override
	public BankAuthVo getBankAuth(String  cardNo,Integer status) {
		return get("FROM BankAuthVo b where b.cardNo = ? AND b.status = ?", new Object[]{cardNo,status});
	}

	@Override
	public void saveBankAuth(BankAuthVo bankAuth) {
		saveOrUpdate(bankAuth);
	}

}
